package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Subject implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * id       db_column: id 
     */	
	private String id;
    /**
     * 类型(0连接，1自定义)       db_column: type
     */
	private String type;
    /**
     * 显示状态(0否，1是)       db_column: show_status
     */
	private String showStatus;
    /**
     * 文章连接       db_column: subject_url
     */
	private String subjectUrl;
    /**
     * 标题       db_column: title
     */
	private String title;
    /**
     * 封面图       db_column: cover_image
     */
	private String coverImage;
    /**
     * 内容       db_column: content
     */
	private String content;
    /**
     * 分类id       db_column: classify_id
     */
	private String classifyId;
    /**
     * 分类名       db_column: classify_name
     */
	private String classifyName;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
	//columns END

	public Subject(){
	}

	public Subject(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setType(String value) {
		this.type = value;
	}

	public String getType() {
		return this.type;
	}
	public void setShowStatus(String value) {
		this.showStatus = value;
	}

	public String getShowStatus() {
		return this.showStatus;
	}
	public void setSubjectUrl(String value) {
		this.subjectUrl = value;
	}

	public String getSubjectUrl() {
		return this.subjectUrl;
	}
	public void setTitle(String value) {
		this.title = value;
	}

	public String getTitle() {
		return this.title;
	}
	public void setCoverImage(String value) {
		this.coverImage = value;
	}

	public String getCoverImage() {
		return this.coverImage;
	}
	public void setContent(String value) {
		this.content = value;
	}

	public String getContent() {
		return this.content;
	}
	public void setClassifyId(String value) {
		this.classifyId = value;
	}

	public String getClassifyId() {
		return this.classifyId;
	}
	public void setClassifyName(String value) {
		this.classifyName = value;
	}

	public String getClassifyName() {
		return this.classifyName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Subject == false) return false;
		if(this == obj) return true;
		Subject other = (Subject)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

